package indi.cyh.entity;


import com.alibaba.fastjson2.annotation.JSONField;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * @author CYH
 * @date 2025-02-10  
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table("sql_pub.db_connect")
@Schema(description = "实体类")
public class DbConnect implements Serializable {


	private static final long serialVersionUID =  7872582255867520608L;


	@Id(value = "id")
	@JSONField(name = "id",alternateNames = { "id", "id"})
	private String id;

	/**
	 * 数据库名称
	 */
	@Schema(description = "数据库名称", example = "")
	@JSONField(name = "name",alternateNames = { "name", "name"})
	private String name;

	/**
	 * jdbc 连接字符串
	 */
	@Schema(description = "jdbc 连接字符串", example = "")
	@JSONField(name = "jdbcUrl",alternateNames = { "jdbcUrl", "jdbc_url"})
	private String jdbcUrl;

	/**
	 * 驱动类型
	 */
	@Schema(description = "驱动类型", example = "")
	@JSONField(name = "driver",alternateNames = { "driver", "driver"})
	private String driver;

	/**
	 * 登录名
	 */
	@Schema(description = "登录名", example = "")
	@JSONField(name = "userName",alternateNames = { "userName", "user_name"})
	private String userName;

	/**
	 * 登录密码
	 */
	@Schema(description = "登录密码", example = "")
	@JSONField(name = "password",alternateNames = { "password", "password"})
	private String password;

	/**
	 * 备注
	 */
	@Schema(description = "备注", example = "")
	@JSONField(name = "note",alternateNames = { "note", "note"})
	private String note;

}
